package deepr.src.graph;

import deepr.behaviour.RequestDispose;
import deepr.entity.DeeprRequest;
import deepr.entity.DeeprResponse;
import deepr.lib.GraphQlLib;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class GraphDispose extends RequestDispose {


  public GraphDispose() {
    super(new GraphDisposeContext(), new GraphFilter());
  }

  @Override
  public DeeprResponse list(DeeprRequest deeprRequest) throws Exception {
    String str = GraphQlLib.list((GraphDisposeContext) getCtx(), deeprRequest);
    log.info("list str: {}", str);
    return null;
  }

  @Override
  public DeeprResponse info(DeeprRequest deeprRequest) throws Exception {
    String str = GraphQlLib.info((GraphDisposeContext) getCtx(), deeprRequest);
    log.info("list str: {}", str);
    return null;
  }


}
